package com.rm.zeyou.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 限时优惠券表
 * </p>
 *
 * @author YanYang
 * @since 2025-03-12 15:55:08
 */
@Getter
@Setter
@TableName("t_limit_coupon_config")
@ApiModel(value = "LimitCouponConfig对象", description = "限时优惠券表")
public class LimitCouponConfig implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("限时抢券表pk")
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("场次id")
    @TableField("matches_id")
    private Long matchesId;

    @ApiModelProperty("（满多少）")
    @TableField("coupon_full")
    private BigDecimal couponFull;

    @ApiModelProperty("（减多少）")
    @TableField("coupon_subtract")
    private BigDecimal couponSubtract;

    @ApiModelProperty("优惠券数量")
    @TableField("coupon_total")
    private Integer couponTotal;

    @ApiModelProperty("优惠券状态(0=下架,1=上架)")
    @TableField("coupon_status")
    private Integer couponStatus;

    @ApiModelProperty("优惠券限制用户领取次数")
    @TableField("coupon_limit_receive_total")
    private Integer couponLimitReceiveTotal;

    @ApiModelProperty("适用范围(0=全场通用 其他=技师id)")
    @TableField("coupon_scope_application")
    private Integer couponScopeApplication;

    @ApiModelProperty("有效天数")
    @TableField("effect_day")
    private Integer effectDay;

    @ApiModelProperty("优惠券乐观锁")
    @TableField("version")
    @Version
    private Integer version;

    @ApiModelProperty("是否删除(0=否，1=是)")
    @TableField("is_delete")
    @TableLogic
    private Integer isDelete;

    @ApiModelProperty("创建时间")
      @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty("更新时间")
      @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


}
